<!-- 创建话题 -->
<template>
  <div class="my-talk">
    <el-card shadow="always" :body-style="	{ padding: '0px' }" class="create">
      <div class="title">
        <span>创建话题</span>
      </div>
      <div class="form">
        <el-form :label-position="right" label-width="80px">
          <el-form-item label="话题名称">
            <el-input v-model="formLabelAlign.name" placeholder="请输入话题名称"></el-input><br>
                  <span>话题名称应当明确指出话题定位，过于诗意的名字不容易让人理解</span>
          </el-form-item>
    
          <el-form-item label="简介">
            <el-input v-model="formLabelAlign.region" placeholder="请输入话题的简介，在180字内"></el-input>
          </el-form-item>
          <el-form-item label="主题">
            <el-input v-model="formLabelAlign.type" placeholder="请输入题材或风格"></el-input>
            <span>请选择话题头像：</span>
            <up-load></up-load>
             <el-button type="primary" @click="open">立即创建</el-button>
             <el-button :plain="true" >成功</el-button>
          </el-form-item>
        </el-form>
      </div>
    </el-card>
    <el-card shadow="always" :body-style="	{ padding: '0px' }" class="intro">
      <div class="title">
        <span>什么是话题</span>
      </div>
      <span v-if="joingroup">小组是一种摄影组织<br>
可以是学校摄影社团<br>
可以是城市摄影家协会<br>
可以是摄影QQ群<br>
可以是城市+主题(如北京胡同) <br>
可以是城市+器材(如上海大画幅、成都胶片)</span>
    </el-card>
  </div>
</template>

<script>
import UpLoad from '@/subcomponents/uploadface.vue'

export default {
  data() {
    return {
      joingroup: true,
       formLabelAlign: {
          name: '',
          region: '',
          type: ''
        }
    };
  },
    components:{
        UpLoad,
    },
  methods: {
    open(){
        this.$store.commit("showInfoMsg","删除成功!");
    }
  }
};
</script>
<style lang='scss' scoped>
.my-talk {
  text-align: center;
  margin: 50px 100px;
  display: flex;
  justify-content: space-between;
  .title {
    background-color: #f5f5f5;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    span {
      font-size: 16px;
      letter-spacing: 3px;
      font-weight: bold;
    }
  }
  .create {
    width: 75%;
    .form{
        margin: 30px 30px;
    }
  }
  .intro {
    width: 23%;
    height: 230px;
    span{
        font-size:15px;
        letter-spacing: 2px;
        line-height: 25px;
    }
  }
}
</style>